using System;
using Castle.ActiveRecord;

namespace KenEgozi.Com.Domain.Aggregates
{
	public class Lifecycle
	{
		private readonly DateTime _creationDate;
		private DateTime _updateDate;

		public Lifecycle()
		{
			_creationDate = DateTime.Now.ToUniversalTime();
			_updateDate = _creationDate;
		}

		[Property(Access = PropertyAccess.NosetterCamelcaseUnderscore)]
		public virtual DateTime CreationDate
		{
			get { return _creationDate; }
		}

		[Property]
		public virtual DateTime UpdateDate
		{
			get { return _updateDate; }
			set { _updateDate = value; }
		}
	}
}